package cn.edu.nuc.fourth.model;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotEmpty;

public class Major {
    private Integer majorid;

    private Integer userid;

    private String mdate;

    @NotEmpty(message="不能为空")
	@Pattern(regexp="[0-9]{0,2}",message="必须为数字")
    private String majorType;
    @NotEmpty(message="不能为空")
  	@Pattern(regexp="[0-9]{0,2}",message="必须为数字")
    private String majors;
    @NotEmpty(message="不能为空")
  	@Pattern(regexp="[0-9]{0,2}",message="必须为数字")
    private String marjosDirection;
    @NotEmpty(message="不能为空")
  	@Pattern(regexp="[0-9]{0,2}",message="必须为数字")
    private String marjorKeys;
    @NotEmpty(message="不能为空")
  	@Pattern(regexp="[0-9]{0,2}",message="必须为数字")
    private String majorStaff;
    @NotEmpty(message="不能为空")
  	@Pattern(regexp="[0-9]{0,2}",message="必须为数字")
    private String majorSpecial;
    @NotEmpty(message="不能为空")
  	@Pattern(regexp="[0-9]{0,2}",message="必须为数字")
    private String companyCourse;
    @NotEmpty(message="不能为空")
  	@Pattern(regexp="[0-9]{0,2}",message="必须为数字")
    private String textbook;
    @NotEmpty(message="不能为空")
  	@Pattern(regexp="[0-9]{0,2}",message="必须为数字")
    private String tTextbook;
    @NotEmpty(message="不能为空")
  	@Pattern(regexp="[0-9]{0,2}",message="必须为数字")
    private String planCourse;
    @NotEmpty(message="不能为空")
  	@Pattern(regexp="[0-9]{0,2}",message="必须为数字")
    private String shareCourse;

    private String checkDate;

    private Integer xCheckstate;

    private Integer cCheckstate;

    private String checkComment;

    private String checkPer;

    private Integer state;

    public Integer getMajorid() {
        return majorid;
    }

    public void setMajorid(Integer majorid) {
        this.majorid = majorid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getMdate() {
        return mdate;
    }

    public void setMdate(String mdate) {
        this.mdate = mdate == null ? null : mdate.trim();
    }

    public String getMajorType() {
        return majorType;
    }

    public void setMajorType(String majorType) {
        this.majorType = majorType == null ? null : majorType.trim();
    }

    public String getMajors() {
        return majors;
    }

    public void setMajors(String majors) {
        this.majors = majors == null ? null : majors.trim();
    }

    public String getMarjosDirection() {
        return marjosDirection;
    }

    public void setMarjosDirection(String marjosDirection) {
        this.marjosDirection = marjosDirection == null ? null : marjosDirection.trim();
    }

    public String getMarjorKeys() {
        return marjorKeys;
    }

    public void setMarjorKeys(String marjorKeys) {
        this.marjorKeys = marjorKeys == null ? null : marjorKeys.trim();
    }

    public String getMajorStaff() {
        return majorStaff;
    }

    public void setMajorStaff(String majorStaff) {
        this.majorStaff = majorStaff == null ? null : majorStaff.trim();
    }

    public String getMajorSpecial() {
        return majorSpecial;
    }

    public void setMajorSpecial(String majorSpecial) {
        this.majorSpecial = majorSpecial == null ? null : majorSpecial.trim();
    }

    public String getCompanyCourse() {
        return companyCourse;
    }

    public void setCompanyCourse(String companyCourse) {
        this.companyCourse = companyCourse == null ? null : companyCourse.trim();
    }

    public String getTextbook() {
        return textbook;
    }

    public void setTextbook(String textbook) {
        this.textbook = textbook == null ? null : textbook.trim();
    }

    public String gettTextbook() {
        return tTextbook;
    }

    public void settTextbook(String tTextbook) {
        this.tTextbook = tTextbook == null ? null : tTextbook.trim();
    }

    public String getPlanCourse() {
        return planCourse;
    }

    public void setPlanCourse(String planCourse) {
        this.planCourse = planCourse == null ? null : planCourse.trim();
    }

    public String getShareCourse() {
        return shareCourse;
    }

    public void setShareCourse(String shareCourse) {
        this.shareCourse = shareCourse == null ? null : shareCourse.trim();
    }

    public String getCheckDate() {
        return checkDate;
    }

    public void setCheckDate(String checkDate) {
        this.checkDate = checkDate == null ? null : checkDate.trim();
    }

    public Integer getxCheckstate() {
        return xCheckstate;
    }

    public void setxCheckstate(Integer xCheckstate) {
        this.xCheckstate = xCheckstate;
    }

    public Integer getcCheckstate() {
        return cCheckstate;
    }

    public void setcCheckstate(Integer cCheckstate) {
        this.cCheckstate = cCheckstate;
    }

    public String getCheckComment() {
        return checkComment;
    }

    public void setCheckComment(String checkComment) {
        this.checkComment = checkComment == null ? null : checkComment.trim();
    }

    public String getCheckPer() {
        return checkPer;
    }

    public void setCheckPer(String checkPer) {
        this.checkPer = checkPer == null ? null : checkPer.trim();
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

	@Override
	public String toString() {
		return "Major [majorid=" + majorid + ", userid=" + userid + ", mdate=" + mdate + ", majorType=" + majorType
				+ ", majors=" + majors + ", marjosDirection=" + marjosDirection + ", marjorKeys=" + marjorKeys
				+ ", majorStaff=" + majorStaff + ", majorSpecial=" + majorSpecial + ", companyCourse=" + companyCourse
				+ ", textbook=" + textbook + ", tTextbook=" + tTextbook + ", planCourse=" + planCourse
				+ ", shareCourse=" + shareCourse + ", checkDate=" + checkDate + ", xCheckstate=" + xCheckstate
				+ ", cCheckstate=" + cCheckstate + ", checkComment=" + checkComment + ", checkPer=" + checkPer
				+ ", state=" + state + "]";
	}
    
    
}